package com.ywgt.single;

/**
 * 饿汉式  存在浪费空间问题
 */
public class Hungry {
    private Hungry(){

    }
    private final static  Hungry HUNGRY=new Hungry();

    public static Hungry instance(){
        return HUNGRY;
    }
}
